package hello

import (
	"log"
	"os"
)

const (
	DEBUG   = "Debug"
	WARNING = "Warning"
	ERROR   = "Error"
)

func Logger(errorLevel string, errMessage string) {
	// fileName := "log_debug.log"
	// logFile, err := os.Create(fileName)
	// defer logFile.Close()

	// if err != nil {
	// 	log.Fatal("open file fail!")
	// }

	debugLog := log.New(os.Stdout, "["+errorLevel+"]", log.Llongfile)
	debugLog.SetFlags(debugLog.Flags() | log.Llongfile | log.LstdFlags)
	debugLog.Println(errMessage)

}
